<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
	"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xml:lang="en-GB" xmlns="http://www.w3.org/1999/xhtml" xmlns:my="http://code.google.com/p/layout4j/" lang="en-GB">
<head>
<script type="text/javascript" src="${pageContext.request.contextPath}/admin/js/jquery.1-4-4.js"></script>
<script type="text/javascript">
	jQuery(document).ready(function() {
		var prefix    = jQuery("div[my-test='foo']").html();
		var prefixHas = jQuery("div[my-test='foo']:has(p)").html();
		var attr   = jQuery("div[class='foo']").html();
		var attrHas   = jQuery("div[class='foo']:has(p)").html();
		alert("prefix=" + prefix + "\nprefixHas=" + prefixHas + "\nattr=" + attr + "\nattrHas=" + attrHas);
	});
</script>
</head>
<body>

<div my-test="foo" class="foo">
  <p>blah</p>
</div>

</body>
</html>